package com.liao.myblog.service;

import com.liao.myblog.pojo.Blog;
import com.liao.myblog.vo.BlogPage;

import java.util.List;

public interface BlogService {

    List<Blog> queryBlogList();

    int deleteBlog(int[] id);

    boolean saveBlog(Blog blog);

    Blog queryBlogById(int id);

    boolean updateBlogById(Blog blog);

    List<Blog> queryBlogByTitle(String title);

    int findBlogCount();

    List<Blog> findBlogByPaging(int limit, int offset, String keyword);

    List<Blog> queryNewBlog(int limit);

    List<Blog> queryHotBlog(int limit);

    BlogPage queryBlogByKeyword(int limit, int offset, String keyword);

    int queryBlogCountByKeyword(String keyword);

    int queryBlogCountByCatalogueId(int catalogueId);

    List<Blog> queryBlogByCatalogueId(int catalogueId, int pageNum, int pageSize);
}
